Optimal. Leaf size=33 \[ -\frac{1}{2 d (a+i a \tan (c+d x))}-\frac{i x}{2 a} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0263502, antiderivative size = 33, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 22, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.091, Rules used = {3526, 8} \[ -\frac{1}{2 d (a+i a \tan (c+d x))}-\frac{i x}{2 a} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3526
Rule 8
Rubi steps
\begin{align*} \int \frac{\tan (c+d x)}{a+i a \tan (c+d x)} \, dx &=-\frac{1}{2 d (a+i a \tan (c+d x))}-\frac{i \int 1 \, dx}{2 a}\\ &=-\frac{i x}{2 a}-\frac{1}{2 d (a+i a \tan (c+d x))}\\ \end{align*}
Mathematica [A] time = 0.0942524, size = 45, normalized size = 1.36 \[ \frac{(1-2 i d x) \tan (c+d x)-2 d x+i}{4 a d (\tan (c+d x)-i)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.02, size = 58, normalized size = 1.8 \begin{align*}{\frac{{\frac{i}{2}}}{ad \left ( \tan \left ( dx+c \right ) -i \right ) }}-{\frac{\ln \left ( \tan \left ( dx+c \right ) -i \right ) }{4\,ad}}+{\frac{\ln \left ( \tan \left ( dx+c \right ) +i \right ) }{4\,ad}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: RuntimeError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.25195, size = 90, normalized size = 2.73 \begin{align*} \frac{{\left (-2 i \, d x e^{\left (2 i \, d x + 2 i \, c\right )} - 1\right )} e^{\left (-2 i \, d x - 2 i \, c\right )}}{4 \, a d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.45862, size = 66, normalized size = 2. \begin{align*} \begin{cases} - \frac{e^{- 2 i c} e^{- 2 i d x}}{4 a d} & \text{for}\: 4 a d e^{2 i c} \neq 0 \\x \left (- \frac{\left (i e^{2 i c} - i\right ) e^{- 2 i c}}{2 a} + \frac{i}{2 a}\right ) & \text{otherwise} \end{cases} - \frac{i x}{2 a} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.36091, size = 78, normalized size = 2.36 \begin{align*} -\frac{\frac{\log \left (\tan \left (d x + c\right ) - i\right )}{a} - \frac{\log \left (-i \, \tan \left (d x + c\right ) + 1\right )}{a} - \frac{\tan \left (d x + c\right ) + i}{a{\left (\tan \left (d x + c\right ) - i\right )}}}{4 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]